package com.fyales.android.api.response;

/**
 * 返回数据最外层的Model类
 * @author fyales
 * @since 15/12/4.
 */
public class HttpResponse<T> {
    String reason;
    String error_code;
    T result;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T results) {
        this.result = results;
    }

    @Override
    public String toString() {
        return "HttpResponse{" +
                "reason='" + reason + '\'' +
                ", error_code='" + error_code + '\'' +
                ", result=" + result +
                '}';
    }
}
